#include <stdio.h>
int main()
{
    int n,i,a,t;
    while (scanf("%d",&n)!=EOF)
    {
        t=1;
        for (i=0;i<n;i++)
        {
            scanf("%d",&a);
            if (a%2==1)t*=a;
        }
        printf("%d\n",t);
    }
    return 0;
}
